home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _A60F5F105E934C48B67832CEB0F429B9 < prev    next >
Encoding:
Text File  |  2004-06-23  |  1.1 KB  |  52 lines

  1. light("spot_shadowmap")
  2. {
  3.     pass()
  4.     {
  5.         VertexShader("SpotShadowMapVSLow.vsh")
  6.         tmu()
  7.         {
  8.             texgen("spotlight")
  9.             texture()
  10.             {
  11.                 shadowmap()
  12.                 addressfunc("clamp", "clamp", "clamp")
  13.             }
  14.             ColorOp("arg1", "texture", "current", "current")
  15.         }
  16.  
  17.         tmu()
  18.         {
  19.             texgen("shadowmap_z")
  20.  
  21.             texture()
  22.             {
  23.                 image("spot_z_inv.png")
  24.                 addressfunc("clamp", "clamp", "clamp")
  25.                 filtering("no_filtering")
  26.             }
  27.             ColorOp("mul", "texture", "current", "current")
  28.  
  29.         }
  30.  
  31.         tmu()
  32.         {
  33.             texture()
  34.             {
  35.                 Image(%colortexture)
  36.                 addressfunc("clamp", "clamp", "clamp")
  37.             }
  38.             ColorOp("mul", "texture_a", "current", "current")
  39.             AlphaOp("arg2", "texture", "tfactor", "current")
  40.         }
  41.  
  42.  
  43.         blendfunc("zero", "inv_src_color")
  44.  
  45.         depthfunc("lequal", 0)
  46.         tfactor(0,0,0,0)
  47.         blackfog()
  48.     }
  49.  
  50. }
  51.  
  52.